#ifndef _PARALLAX_H
#define _PARALLAX_H

#include <SFML/Graphics.hpp>
#include <iostream>

using namespace std;


#include "Objects.h"


/* Parallax Background/Foreground Class */
class Parallax : public Objects
{
public:
	//constructor, set Scrolling speed and location to load image
	Parallax( float scroll_speed, string location );
	Parallax() {}


	//Load the Parallax background
	bool Load(std::string location);

	//Reset positions
	void Reset();

	//Update positions of the individual sprites that
	//make up the background
	void Update_Logic();



	//Draw Backgrounds to the screen
	void Draw();


	//Set/Get scroll speed
	void Set_ScrollSpeed(float ss) { scroll_speed = ss; }
	float Get_ScrollSpeed() { return scroll_speed; }



	//Update Scroll positions of all background sprites
//	static void Set_ScrollX( float vx );
//	static void Set_ScrollY( float vy );


protected:
	//Sprites that makeup the background
	sf::Sprite back[4];

	float scroll_speed;

	//scrolling vector to base off the each background off
	//static sf::Vector2f map_scroll;
	sf::Image Image;
};

#endif